#ifndef SeaMap_H
#define SeaMap_H

#include "SeaMap_common.h"

class SeaMap : public LayerPlugin
{
public:
	SeaMap();
	~SeaMap();


private:
	property_tree::wptree _xml;
	ref_ptr<Group>		_depthContours;
	ref_ptr<Group>		_depthAreas;
	ref_ptr<Group>		_landAreas;
	ref_ptr<OsgLOD>		_labels;
	LabelMode			_labelMode;

	vector<string>		_s57Names;
	vector<string>		_s57files;
	vector<string>		_shpDirs;

	vector<LevelColor>	_depthAreaLevelColors;
	GisColor			_landColor;

	map<string, string> _dictionary;


public:
	virtual bool initPlugin();

private:
	void loadSeaMapNodes();

	bool loadConfigFile();
	void loadDictionary();

	void loadDepthAreaLevelColors();
	void loadLandColor();
	void loadLabelMode();
};



#endif // SeaMap_H